package cn.com.headfree.sysmenu.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.gta.edu.sdk.mybatis.common.Entity;

import java.io.Serializable;
import java.util.Date;

/**
 * 系统角色表
 */
public class TSysRole extends Entity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private String id;

    /**
     * 单位ID
     */
    private String orgId;

    /**
     * 单位名称
     */
    private String orgName;

    /**
     * 角色名称
     */
    private String roleName;

    /**
     * 角色代码
     */
    private String roleCode;

    /**
     * 角色类型
     */
    private String roleType;

    /**
     * 状态，Y:启用，N:停用
     */
    private String status;

    /**
     * 应用ID
     */
    private String appId;

    /**
     * 业务域ID
     */
    private String domainId;

    /**
     * 角色描述
     */
    private String description;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date createTime;

    //显示顺序
    private Integer roleSort;

    /** 菜单组 */
    private String[] menuIds;

    public TSysRole(String id, String orgId, String roleName, String roleCode, String roleType, String status,
                    String appId, String domainId, String description, Date createTime, Integer roleSort) {
        this.id = id;
        this.orgId = orgId;
        this.roleName = roleName;
        this.roleCode = roleCode;
        this.roleType = roleType;
        this.status = status;
        this.appId = appId;
        this.domainId = domainId;
        this.description = description;
        this.createTime = createTime;
        this.roleSort = roleSort;
    }

    public TSysRole() {
        super();
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getOrgId() {
        return orgId;
    }

    public void setOrgId(String orgId) {
        this.orgId = orgId;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public String getRoleCode() {
        return roleCode;
    }

    public void setRoleCode(String roleCode) {
        this.roleCode = roleCode;
    }

    public String getRoleType() {
        return roleType;
    }

    public void setRoleType(String roleType) {
        this.roleType = roleType;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getRoleSort() {
        return roleSort;
    }

    public void setRoleSort(Integer roleSort) {
        this.roleSort = roleSort;
    }

    public String getDomainId() {
        return domainId;
    }

    public void setDomainId(String domainId) {
        this.domainId = domainId;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getOrgName() {
        return orgName;
    }

    public void setOrgName(String orgName) {
        this.orgName = orgName;
    }

    public String[] getMenuIds() {
        return menuIds;
    }

    public void setMenuIds(String[] menuIds) {
        this.menuIds = menuIds;
    }
}
